import SynchronizationLoginNork from '@/utils/SynchronizationLoginWork'
import Synchronization from "@/utils/Synchronization"
import LoginWork from '@/utils/LoginWork'
import service from '@/utils/request'
// 选择型体查询
export const SelectTypeQuery = (parms:any) => {
    return service.post<any,any>(`/costActivity/SelectTheTargetVehicleBody`,parms)
}

// 选择颜色查询
export const SelectColorQuery = (styleNo:string) => {
    return service.get<any,any>(`/costActivity/ChooseASewingMachineColor?styleNo=${styleNo}`)
}

// 检核
export const CounterCheck = (choose:number,parms:any) => {
    return SynchronizationLoginNork.post<any,any>(`/costActivity/NeedleCarInspectionAndVerification/${choose}`,parms)
}

// 整车工序明细
export const NeedleOperationDetailsQuery = (parms:any) => {
    return service.post<any,any>(`/costActivity/NeedleTurningProcessDetails`,parms)
}

// 未导型体颜色查询
export const UnguidedBodyColorQuery = (parms:any) => {
    return service.post<any,any>(`/costActivity/UnguidedBodyColor`,parms)
}

// 删除型体颜色
export const DeleteTheTypeColor = (parms:any) => {
    return SynchronizationLoginNork.post<any,any>(`/costActivity/DeleteBodyColor`,parms)
}

// 整个型体删除
export const TheWholeBodyIsDeleted = (styleNo:string) => {
    return SynchronizationLoginNork.post<any,any>(`/costActivity/DeleteTheEntireShape?styleNo=${styleNo}`)
}

// // 导入针车工序
export const LeadNeedleOperation = (style:string,color:string,parms:any) => {
    return SynchronizationLoginNork.post<any,any>(`/costActivity/ImportNeedleSewingProcess?style=${style}&color=${color}`,parms)
}

// 复制型体
export const copyStyle = (parms:any) => {
    return service.post<any,any>(`/costActivity/stitchProcess/unDealList`,parms)
}

// 复制型体
export const copyStyleQuery = (lotNoParms:any,parms:any) => {
    return SynchronizationLoginNork.post<any,any>(`/costActivity/stitchStyleCopy?style=${lotNoParms.style}&color=${lotNoParms.color}`,parms)
}

// 打勾工序复制
export const copyStyle1 = (parms:any) => {
    return service.post<any,any>(`/costActivity/stitchProcess/dealList`,parms)
}

// 打勾工序复制方法
export const copyStyleQuery1 = (list:any,lotNoParms:any,parms:any) => {
    return SynchronizationLoginNork.post<any,any>(`/costActivity/stitchProcessCopy?style=${lotNoParms.style}&color=${lotNoParms.color}&seqNos=${list}`,parms)
}

// 删除工序名称
export const deleteDeleteOperationName = (parms:any) => {
    return SynchronizationLoginNork.post<any,any>(`/costActivity/removeProcess?style=${parms.style}&color=${parms.color}&seqNos=${parms.seqNos}`)
}

// 保存修改
export const SaveChanges = (parms:any) => {
    return SynchronizationLoginNork.post<any,any>(`/costActivity/saveProcess`,parms)
}